package com.lanqiao.attendance.service;

import com.github.pagehelper.PageInfo;
import com.lanqiao.attendance.pojo.Student;
import com.lanqiao.attendance.vo.*;
import org.springframework.web.multipart.MultipartFile;


import java.io.File;
import java.util.List;


public interface StudentService {
    PageInfo<Student> queryAllStu(PageParam pageParam);

    Student login(String account, String password);

    int insertStudent(Student student);

    List<Student> queryStuByName(String name);

    Student queryStuByAccount(String account);

    int updateStuClass(String className, long id);

    Student queryStuById(long id);

    ClassVo queryClass(String name);

    int delStuById(String account);

    int updateStuByAccount(Student student);

    int updateStuByTea(Student student);

    Student queryStuByIdPart(long id);

    List<Student> queryStuByClsName(String className);

    Result modify(MultipartFile headImg, long id);


    Student queryStuBysAccount(String account);

    void updateHeadImg(String account, String headImg);

    List<Student> queryAllNoClass();

    Result addToClass(StudentListVo studentListVo);

    Result rmFromClass(StudentListVo studentListVo);

    List<Student> queryAllByClass(String className);

    void updateClassName(String oldName, String newName);

    void rmFromClassByName(String className);

}
